package com.situ.day2;

import org.junit.Test;

public class BreakContinueDemo {

	@Test
	public void testContinue() {
		for (int i = 1; i <= 10; i++) {
			if (i == 5) {
				continue;
			}
			System.out.println(i);
		}
	}
	
	@Test
	public void testBreak() {
		for (int i = 1; i <= 10; i++) {
			if (i == 5) {
				break;
			}
			System.out.println(i);
		}
	}
}
